]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js/ui: Always use namespace for animation modes
authorJonas Ådahl <jadahl@gmail.com>
Wed, 15 Apr 2020 09:16:32 +0000 (11:16 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 15 Apr 2020 13:59:38 +0000 (13:59 +0000)
Clutter.Animation doesn't contain any animation modes, they live in
Clutter.AnimationMode. The places we did `Clutter.Animation.WHATEVER`
just evaluated to `undefined`. Thus, use the correct namespace for the
animation mode enums.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1199

js/ui/panel.js
js/ui/switcherPopup.js

index c2e0f00d3a0d6667e387a059ff33e655cc706e91..e4f20daa634bf44f269ba34eb9dce4c9ef284421 100644 (file)
@@ -281,7 +281,7 @@ var AppMenuButton = GObject.registerClass({
         this.remove_all_transitions();
         this.ease({
             opacity: 0,
-            mode: Clutter.Animation.EASE_OUT_QUAD,
+            mode: Clutter.AnimationMode.EASE_OUT_QUAD,
             duration: Overview.ANIMATION_TIME,
             onComplete: () => this.hide(),
         });
index 23d74ff39b2e1466ae151eb42cca73e8f15b3183..1ff7f00f47ceabe0833051a934abe13e967734c2 100644 (file)
@@ -317,7 +317,7 @@ var SwitcherPopup = GObject.registerClass({
             this.ease({
                 opacity: 0,
                 duration: POPUP_FADE_OUT_TIME,
-                mode: Clutter.Animation.EASE_OUT_QUAD,
+                mode: Clutter.AnimationMode.EASE_OUT_QUAD,
                 onComplete: () => this.destroy(),
             });
         } else {